<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>vendor_test.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">vendor_test.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    <span class='nodesc'>No description.</span>
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_dom_vendor_test.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/dom/vendor_test.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">/goog/dom/vendor_test.js</div>
    </div>
  </div>
<hr/>


   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertGecko"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertGecko<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line267">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="assertIe"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertIe<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line258">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="assertUserAgent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">assertUserAgent<span class="args">(<span class="arg">expectedAgents</span>,&nbsp;<span class="arg">uaString</span>,&nbsp;<span class="arg">opt_product</span>,&nbsp;<span class="arg">opt_vendor</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Test browser detection for a user agent configuration.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">expectedAgents</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&gt;
        <div class="entryOverview">Array of expected userAgents.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">uaString</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">User agent string.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_product</span>
        : <span class="type">string=</span>
        <div class="entryOverview">Navigator product string.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_vendor</span>
        : <span class="type">string=</span>
        <div class="entryOverview">Navigator vendor string.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line82">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="getUserAgentDetected_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">getUserAgentDetected_<span class="args">(<span class="arg">agent</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Return whether a given user agent has been detected.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">agent</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Value in UserAgents.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the user agent has been detected.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line60">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="setUp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">setUp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line31">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="tearDown"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">tearDown<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line36">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedEventType"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedEventType<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test for prefixed event type.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line243">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedEventTypeForBrowser"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedEventTypeForBrowser<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test for browser-specific prefixed event type.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line252">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedPropertyName"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedPropertyName<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the prefixed property name.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line211">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedPropertyNameAndObject"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedPropertyNameAndObject<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the prefixed property name in an object.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line220">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedPropertyNameAndObjectIsEmpty"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedPropertyNameAndObjectIsEmpty<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the prefixed property name when it doesn't exist.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line233">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedPropertyNameWebkit"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedPropertyNameWebkit<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the prefixed property name on Webkit.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line186">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPrefixedPropertyNameWebkitAndObject"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPrefixedPropertyNameWebkitAndObject<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the prefixed property name on Webkit in an object.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line196">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorJsPrefixGecko"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorJsPrefixGecko<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor Js prefix for Mozilla/Gecko.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line150">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorJsPrefixIE"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorJsPrefixIE<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor Js prefix for IE.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line168">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorJsPrefixNone"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorJsPrefixNone<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor Js prefix if no UA detected.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line177">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorJsPrefixOpera"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorJsPrefixOpera<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor Js prefix for Opera.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line159">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorJsPrefixWebkit"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorJsPrefixWebkit<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor Js prefix for Webkit.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line141">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorPrefixGecko"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorPrefixGecko<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor prefix for Mozilla/Gecko.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line114">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorPrefixIE"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorPrefixIE<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor prefix for IE.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line132">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorPrefixOpera"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorPrefixOpera<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor prefix for Opera.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line123">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testVendorPrefixWebkit"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testVendorPrefixWebkit<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests for the vendor prefix for Webkit.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line105">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>






  <h2>Global Variables</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="mockUserAgent"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">mockUserAgent</span>
        : <span class="type"><a href="class_goog_testing_MockUserAgent.html">goog.testing.MockUserAgent</a></span>
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_dom_vendor_test.js.source.html#line28">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory dom</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="/goog/dom/vendor_test.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
